<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Event</title>
<link href="../../../../../styles.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="11%"><strong>Package</strong></td>
    <td width="89%">com.jxl.shuriken.events </td>
  </tr>
  <tr>
    <td><strong>Class</strong></td>
    <td>public class Event </td>
  </tr>
  <tr>
    <td><strong>Inheritance</strong></td>
    <td>Event &gt; Object </td>
  </tr>
  <tr>
    <td><strong>Subclasses</strong></td>
    <td>&nbsp;</td>
  </tr>
</table>
<p>The Event class is for strong-typing of events, and to formalize the standard that all events have a type, and a target. While you could just use an anonymous Object:</p>
<pre><code>var o = {type: &quot;SomeEvent&quot;, target: this};</code></pre>
<p>That does not take advantage of ActionScript 2 strong-typing. Basically, if you mis-spell the evnet name, or &quot;targt&quot; instead of &quot;target&quot;, you are left with a SWF that compiles, but does not work correctly. Using Event, the Flash Compiler will tell you that mispelled it so you can then compile with confidence you'll end up with a working SWF. </p>
<p>view examples</p>
<p>See also</p>
<p>Public Properties</p>
<p>Public Methods</p>
<p>&nbsp;     </p>
</body>
</html>
